package com.cman777.springc.mybatis.properties;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @author chenzhicong
 * @time 2019/11/8 0:38
 * @description
 */
@ConfigurationProperties(prefix = "cman777.springc.mybatis")
@Getter
@Validated
public class MybatisProperties {

    /**
     * sql的执行时长大于此时间时，就是慢sql
     *
     * 单位秒
     */
    @NotNull
    private Integer slowSqlLimitSecond = 1;

}
